package org.jeecg.common.modules.settlement.service;

import com.baomidou.mybatisplus.extension.service.IService;
import org.apache.ibatis.annotations.Param;
import org.jeecg.common.modules.settlement.entity.Settlement;
import org.jeecg.common.modules.settlement.entity.SettlementDetail;
import org.jeecg.common.modules.settlement.vo.SettlementDetailReqVo;
import org.jeecg.common.util.enums.SettlementDetailTypeEnum;

import java.math.BigDecimal;
import java.util.List;

/**
 * @Description: settlement_detail
 * @Author: jeecg-boot
 * @Date:   2020-09-03
 * @Version: V1.0
 */
public interface ISettlementDetailService extends IService<SettlementDetail> {

    /**
     * 初始化一条结算 详情
     * @param settlement
     * @param type
     * @param userId
     * @param amount
     * @param ratio
     * @param createUser
     */
    void initSettlementDetail(Settlement settlement, SettlementDetailTypeEnum type, String userId, BigDecimal amount, BigDecimal ratio, String createUser);


    List<SettlementDetailReqVo> getSettlementDetail(Integer settlementId);
}
